package com.sailors.common.task.provider;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @author feng
 */
@MapperScan(basePackages = {"com.sailors.common.task.provider.infra.repository.dao"})
@SpringBootApplication
@EnableDiscoveryClient
@Slf4j
public class ProviderApplication {


    private final static Logger LOGGER = LoggerFactory.getLogger(ProviderApplication.class);

    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(new Class<?>[]{ProviderApplication.class});
        application.setAllowBeanDefinitionOverriding(true);
        application.run(args);
        LOGGER.info("ProviderApplication is started（项目启动成功）");
    }
}
